/*
 * ExternValues.h
 *
 *  Created on: Mar 5, 2011
 *      Author: Craig Wilson
 */

#ifndef EXTERNVALUES_H_
#define EXTERNVALUES_H_
#include<string>
#include"../inc/URL.h"
#include"../inc/Page.h"
#include"../inc/PageHistory.h"
#include"../inc/LinkedList.h"
#include"../inc/Occurrence.h"
#include"../inc/OccurrenceSet.h"
#include"../inc/KeyWordIndex.h"

		string d1= "Awesome Movie coming out June 2036!", d2="Really boring factual site", d3= "Games Games Games", d4= "Nothing At All";
		string s1("http://www.bloke.com/Intro"),s2("http://www.bloke.com/java/String.htm#legnth"),s3("http://www.bloke.com/javascript/?Question"),s4("http://www.njvb.com"),s5("http://www.geva.org/"),s6("http://www.BestMovieEver2036.com"),s7("http://www.javaapi.com/JPanel.html"),s8("http://www.kongregate.com/");
		URL array[8]={URL(&s1),URL(&s2),URL(&s3),URL(&s4),URL(&s5),URL(&s6), URL(&s7), URL(&s8)};
		LinkedList<URL> l1=LinkedList<URL>(),l2=LinkedList<URL>(),l3=LinkedList<URL>();
		Page *p1,*p2,*p3,*p4;
		PageHistory *history;
		Occurrence *o1,*o2,*o3,*o4;
		OccurrenceSet *oSet1,*oSet2;
		KeyWordIndex *Index;

		void iniValues(){
			l1= LinkedList<URL>();
			l2= LinkedList<URL>();
			l3= LinkedList<URL>();
			l1.Insert(array[0]);
			l1.Insert(array[2]);
			l1.Insert(array[3]);
			l1.Insert(array[4]);
			l2.Insert(array[5]);
			l2.Insert(array[6]);
			l2.Insert(array[7]);
			l2.Insert(array[2]);
			l2.Insert(array[1]);
			l3.Insert(array[2]);
			l3.Insert(array[5]);
			l3.Insert(array[6]);

			p1= new Page(array[5],d1,l1);
			p2= new Page(array[6],d2,l2);
			p3= new Page(array[7],d3,l3);
			p4= new Page(array[7],d3,l3);

			o1=new Occurrence(*p1);
			o2=new Occurrence(*p2);
			o3=new Occurrence(*p3);
			o4= new Occurrence(*p4);

			history=new PageHistory(); //Why does this work and not history()?

			oSet1=new OccurrenceSet();
			oSet2=new OccurrenceSet();

			Index=new KeyWordIndex();
		}


#endif
